// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import axios from 'axios'
import httpRequest from '@/api/httpRequest'
import 'element-ui/lib/theme-chalk/index.css';
import {Button, Form, FormItem, Input, Select, Upload, Menu,MenuItem, Aside, Submenu, MenuItemGroup, Header, Dropdown, DropdownItem, DropdownMenu, Container, Main, Table, TableColumn, DatePicker, Link, MessageBox, Message, Dialog, Collapse, CollapseItem, Loading} from 'element-ui';
import { name } from 'file-loader';
Vue.config.productionTip = false
Vue.prototype.$axios=httpRequest
Vue.use(Button);
Vue.use(Select)
Vue.use(Input)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Upload)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Aside)
Vue.use(Submenu)
Vue.use(MenuItemGroup)
Vue.use(Header)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Container)
Vue.use(Main)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(DatePicker)
Vue.use(Link)
Vue.use(Dialog)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.use(Loading)

Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$message = Message;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
